﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace View
{
    /// <summary>
    /// Interaction logic for UserControl.xaml
    /// </summary>
    public partial class UserControl : Window
    {
        public UserControl()
        {
            InitializeComponent();
        }

        private void exitMenu_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void calendar1_SelectedDatesChanged(object sender, SelectionChangedEventArgs e)
        {
            this.entryLbl.Visibility = Visibility.Visible;
            this.entryLstBox.Visibility = Visibility.Visible;
            this.ownerLbl.Visibility = Visibility.Visible;
            this.ownerLstBox.Visibility = Visibility.Visible;
        }

        private void entry1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Entry a = new Entry();
            a.Show();
        }
        private void entry2_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ViewEntry a = new ViewEntry();
            a.Show();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            UserList a = new UserList();
            a.Show();
        }

        private void removeUserBtn_Click(object sender, RoutedEventArgs e)
        {
            //Remove user
        }

        private void deleteEntryBtn_Click(object sender, RoutedEventArgs e)
        {

        }

        private void setAuditBtn_Click(object sender, RoutedEventArgs e)
        {
            AuditView a = new AuditView();
            a.Show();
        }

        private void viewAuditBtn_Click(object sender, RoutedEventArgs e)
        {
            AuditControlView a = new AuditControlView();
            a.Show();
        }

        private void newPassBtn_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
